<?php
use \blog\model\Article;
use \blog\model\Meta;
use \blog\model\Link;
use \blog\libs\Html;
use \blog\libs\Common;
?>
	<?php
	if (isset($article)) {
		$description = str_replace("\n", ' ', $article->excerpt(100, '...', TRUE, TRUE));
		$keyword = $article->tags;
	} else {
		$description = Common::option('description');
		$keyword = Common::option('keyword');
	}
	?>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="<?=$description?>">
	<meta name="keyword" content="<?=$keyword?>">
	<link rel="dns-prefetch" href="//g.alicdn.com">
	<link rel="dns-prefetch" href="//at.alicdn.com">
	<link rel="dns-prefetch" href="//cdn.sylibs.com">
	<link rel="dns-prefetch" href="//lib.baomitu.com">
	<link rel="dns-prefetch" href="//tianshu.alicdn.com">
	<link rel="stylesheet" type="text/css" href="https://lib.baomitu.com/material-design-icons/3.0.1/iconfont/material-icons.min.css">
	<link rel="stylesheet" type="text/css" href="https://lib.baomitu.com/material-design-lite/1.3.0/material.teal-red.min.css">
	<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_227884_x96i0x1lauyjh5mi.css">
	<link rel="stylesheet" type="text/css" href="https://cdn.sylibs.com/blog/css/style.min.css">
	<!--[if lt IE 9]><script src="https://lib.baomitu.com/html5shiv/3.7.3/html5shiv.min.js"></script><![endif]-->